<!--页头-->
<ion-header>
    <ion-navbar>
        <ion-title>
           扫描电梯列表
        </ion-title>
    </ion-navbar>
</ion-header>


<ion-content>
    <ion-list *ngFor="let level of levels let indx=index">

           <ion-card>
               <ion-item-sliding>
                <ion-item class="activatedColor">
                    <ion-label class="eleInfo" >{{level.name}}</ion-label>

                    <ion-icon name="ios-arrow-down" item-right *ngIf="temp=='show'+indx" (click)="accordion(indx,'hihe')"></ion-icon>
                    <ion-icon name="ios-arrow-forward" item-right *ngIf="temp!='show'+indx" (click)="accordion(indx,'show')"></ion-icon>
                </ion-item>

               <ion-item-options>
                   <button danger style="background-color: #f30d0d;color: white" (click)="removeItem(level)">删除</button>
               </ion-item-options>

               </ion-item-sliding>

            </ion-card>

            <ng-container *ngIf="temp=='show'+indx">
                <ion-card *ngFor="let item of level.project;let i= index">
                          <ion-card-content >
                            {{item.checkName}}
                          </ion-card-content>

                          <ion-card-content >
                             基本要求：{{item.ext2}}
                          </ion-card-content>
                    <ion-item class="activatedItemColor">
                        <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="item.isChecked"  value="0" ><label>&nbsp;&nbsp;是 &nbsp;&nbsp;</label>

                        <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="item.isChecked"  value="1" ><label>&nbsp;&nbsp;否 &nbsp;&nbsp;</label>

                        <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="item.isChecked"  value="2" ><label>&nbsp;&nbsp;无此项 &nbsp;&nbsp;</label>
                    </ion-item>


                    <div *ngIf="item.isChecked=='1'">
                        <div class="area">
                            <ion-textarea class="placeholderCss" required type="text" placeholder="输入其他要补充的内容" rows="2" [(ngModel)]="item.remarkes" >{{item.remarkes}}</ion-textarea>
                        </div>
                        <div class="camera">
                            <img src="assets/icon/remark_camera.png" (click)="doCamera(i,'c')">
                            <img *ngFor="let pic of item.result.picUrl" (click)="onHold(i,pic)" src="{{whaturl(pic)}}" />
                        </div>
                    </div>
                </ion-card>


                <div class="signarea">
                    <ion-card>
                        <ion-item class="activatedColor">
                            <ion-label class="eleInfo">检查结果评价</ion-label>
                        </ion-item>
                    </ion-card>
                    <ion-item>
                        <input class="inputClass" type="radio" name={{i}} [(ngModel)]="level.project[0].resultEvaluate"   value="0" ><label>&nbsp;&nbsp;优 &nbsp;&nbsp;</label>

                        <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="level.project[0].resultEvaluate"  value="1" ><label>&nbsp;&nbsp;良 &nbsp;&nbsp;</label>

                        <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="level.project[0].resultEvaluate"  value="2" ><label>&nbsp;&nbsp;差 &nbsp;&nbsp;</label>
                    </ion-item>
                </div>


            </ng-container>


    </ion-list>

    <ion-item><p><span style="color: #757272;font-size: 15px;font-family: Arial;">签名（检查人签名）</span></p></ion-item>
    <signatrue [inValue]="time" (outPut)="getImgUrl($event)"></signatrue>
</ion-content>

<ion-footer>
    <button style="font-weight: bolder" ion-button block  (click)="submit()">提交</button>
</ion-footer>
